package queue;

public class QueueTest {
    public static void main(String[] args) {
        MyLinkQueue queue = new MyLinkQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        System.out.println(queue.peek());//1
        System.out.println(queue.poll());//1
        System.out.println(queue.poll());//2
    }
}
